package com.example.demo.entity.mybatisplus;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author xzw
 * @since 2021-01-04
 */
@TableName("tb_sys_login")
public class TbSysLogin extends Model<TbSysLogin> {

    private static final long serialVersionUID = 1L;

    /**
     * 登陆账号
     */
    private String login_id;
    /**
     * 登陆密码
     */
    private String login_password;
    /**
     * 最后一次登陆时间
     */
    private Date last_login_time;
    /**
     * 上一次的登陆密码
     */
    private String last_password;
    /**
     * 归属组织机构id
     */
    private String orgid;
    /**
     * 人员id
     */
    private String person_id;
    /**
     * 是否允许登陆  0不允许  1允许
     */
    private Integer allow_login;
    /**
     * 创建时间
     */
    private Date create_time;


    public String getLogin_id() {
        return login_id;
    }

    public void setLogin_id(String login_id) {
        this.login_id = login_id;
    }

    public String getLogin_password() {
        return login_password;
    }

    public void setLogin_password(String login_password) {
        this.login_password = login_password;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public String getLast_password() {
        return last_password;
    }

    public void setLast_password(String last_password) {
        this.last_password = last_password;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getPerson_id() {
        return person_id;
    }

    public void setPerson_id(String person_id) {
        this.person_id = person_id;
    }

    public Integer getAllow_login() {
        return allow_login;
    }

    public void setAllow_login(Integer allow_login) {
        this.allow_login = allow_login;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
	public Serializable pkVal() {
        return this.login_id;
    }

    @Override
    public String toString() {
        return "TbSysLogin{" +
        ", login_id=" + login_id +
        ", login_password=" + login_password +
        ", last_login_time=" + last_login_time +
        ", last_password=" + last_password +
        ", orgid=" + orgid +
        ", person_id=" + person_id +
        ", allow_login=" + allow_login +
        ", create_time=" + create_time +
        "}";
    }
}
